/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f7fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 头部导航 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 20px;
    font-weight: bold;
    color: #0066cc;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-size: 16px;
    color: #555;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #0066cc;
}

nav ul li a.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0066cc;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #0066cc, #004080);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.location {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
}

.location i {
    margin-right: 5px;
}

/* 主要内容区 */
.main-content {
    padding: 40px 0;
}

.services-section {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.services-section h2,
.monitoring-map h2,
.monitoring-dashboard h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.transport-tools,
.info-query {
    margin-bottom: 30px;
}

.transport-tools h3,
.info-query h3 {
    font-size: 18px;
    color: #555;
    margin-bottom: 15px;
}

.transport-grid,
.query-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.query-grid {
    grid-template-columns: repeat(3, 1fr);
}

.transport-item,
.query-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.transport-item:hover,
.query-item:hover {
    background-color: #e6f0ff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.1);
}

.transport-item .icon,
.query-item .icon {
    font-size: 36px;
    color: #0066cc;
    margin-bottom: 10px;
}

.transport-item .text,
.query-item .text {
    font-size: 16px;
    font-weight: 500;
}

.query-item .desc {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* 监测地图 */
.monitoring-map {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.map-container {
    position: relative;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.map-controls button {
    background-color: white;
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.map-controls button:hover {
    background-color: #f0f0f0;
}

.map-image img {
    width: 100%;
    display: block;
}

.map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-item .color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    margin-right: 8px;
}

.legend-item .text {
    font-size: 12px;
}

/* 监测仪表板 */
.monitoring-dashboard {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dashboard-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.card-header {
    background-color: #f5f7fa;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 16px;
    margin: 0;
}

.status {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
    background-color: #eee;
}

.status.active {
    background-color: #e6f7e6;
    color: #00aa00;
}

.card-body {
    padding: 20px;
}

.metric {
    text-align: center;
    margin-bottom: 20px;
}

.metric-value {
    font-size: 36px;
    font-weight: bold;
    color: #0066cc;
}

.metric-label {
    font-size: 14px;
    color: #666;
}

.alerts {
    margin-top: 15px;
}

.alert-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 8px;
    font-size: 14px;
}

.alert-item i {
    margin-right: 8px;
}

.alert-item.info {
    background-color: #e6f0ff;
    color: #0066cc;
}

.alert-item.warning {
    background-color: #fff8e6;
    color: #ffaa00;
}

.alert-item.danger {
    background-color: #ffe6e6;
    color: #ff0000;
}

.chart-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder {
    color: #999;
    text-align: center;
    border: 1px dashed #ddd;
    padding: 20px;
    width: 100%;
    border-radius: 5px;
}

.card-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #eee;
}

.btn-primary {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0055aa;
}

/* 页脚 */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 10px;
}

.footer-logo span {
    font-size: 18px;
    font-weight: bold;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.link-group h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
}

.link-group ul li {
    margin-bottom: 8px;
}

.link-group ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.link-group ul li a:hover {
    color: #fff;
}

.footer-contact h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact p i {
    margin-right: 8px;
}

.social-links {
    display: flex;
    margin-top: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .transport-grid,
    .query-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .transport-grid,
    .query-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}